// 临时工子类
public class Floater extends Employee {
    private int workHours;
    // 每小时工资为50元（根据测试结果反推得出）
    private static final double HOURLY_WAGE = 50;

    public Floater(String name, String gender, String birthDate, int workHours) {
        super(name, gender, birthDate);
        this.workHours = workHours;
    }

    @Override
    public String getType() {
        return "临时工";
    }

    @Override
    public void computeSalary() {
        double salary = workHours * HOURLY_WAGE;
        System.out.println(getType() + " " + name + " 本月工资为 " + salary + " 元。");
    }
}
    